package com.tchhy.provider.service.partner

import com.tchhy.provider.data.partner.MedicineKitApplyInfo
import com.tchhy.provider.data.common.BaseResp
import com.tchhy.provider.data.common.EmptyResp
import com.tchhy.provider.data.partner.request.ApprovalResultReq
import com.tchhy.provider.data.partner.request.SubmitChaseInfo
import com.tchhy.provider.data.partner.response.ApplyMedicineRes
import com.tchhy.provider.data.partner.response.ApprovalItemRes
import com.tchhy.provider.data.partner.response.DataListRes
import com.tchhy.provider.data.partner.response.PartnerAreaRes
import io.reactivex.Observable

/**
 * @author: admin
 * @date: 2019/8/20
 * @des:
 *
 **/
interface WorkService {

    /**
     * @description 获取合伙人的省市区
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun submitPurchaserInfo(submitChaseInfo: SubmitChaseInfo): Observable<EmptyResp>


    /**
     * @description 获取合伙人的省市区
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun getPartnerArea(): Observable<BaseResp<PartnerAreaRes>>

    /**
     * @description 药箱数量
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun medicineAcount(accout: String): Observable<BaseResp<MedicineKitApplyInfo>>


    /**
     * @description 获取申请列表
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun fetchApplyMedicineList(pageNum: Int, pageSize: Int): Observable<BaseResp<DataListRes<ApplyMedicineRes>>>

    /**
     * @description 获取审批列表
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun getApprovalList(pageNum: Int, pageSize: Int, status: Int): Observable<BaseResp<DataListRes<ApprovalItemRes>>>


    /**
     * @description 获取审批列表
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    fun approvalMedicineApply(approvalResultReq: ApprovalResultReq): Observable<EmptyResp>


}